package com.insideClass.TypeMessage.reflect;


class B implements A{

    public void g(){

    }

    @Override
    public void f() {

    }
}
/**
 * @author 13699
 */
public class InterfaceViolation {
    public static void main(String[] args) {
        A a=new B();
        a.f();
        System.out.println(a.getClass().getName());
        if(a instanceof B){
            B b= (B) a;
             b.g();
        }
    }
}
